package cn.hxzy.feign.clients;

import cn.hxzy.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "driver-carteam")
public interface DriverCarClient {

    @GetMapping("/driverCar/car/{carId}")
    Result selectById(@PathVariable String carId);

    /**
     * 通过车辆编号查询车辆
     * @param carId
     * @return
     */
    @GetMapping("/vehicleInformation/selectCarById/{carNum}")
    Result selectCarById(@PathVariable String carNum);

    @GetMapping("/driverCar/user/{userId}")
    Result selectByIdForCar(@PathVariable String userId);

    @GetMapping("/driverCar/selectOne/{userId}")
    Result selectByIdForCar1(@PathVariable String userId);
}
